package com.kb.erp.controller;
import com.kb.erp.service.DBPCBECNNOTICEService;
import com.kb.erp.util.GuavaCacheUtil;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/DBPCBECNNOTICE")
@RestController
public class DBPCBECNNOTICEJobController {



    @Autowired
    private DBPCBECNNOTICEService DBPCBECNNOTICE;

    @XxlJob("SendQwMessage")
    @GetMapping("/spSendQwMessage")
    public void DBPCBECNNOTICE() {
        DBPCBECNNOTICE.spSendQwMessage();
    }


    /**
     * 设置缓存
     * @return
     */
    @ResponseBody
    @GetMapping("/test1")
    public String test2 (){
        GuavaCacheUtil.setStr("aa","bb");
        return "ss";
    }
}
